<style>
  #sortable_android { list-style-type: none; margin: 0; padding: 0; width: 60%; }
  #sortable_android li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 20px; }
  #sortable_android li span { position: absolute; margin-left: -1.3em; }
</style>
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl . '/js/jquery-ui-1.9.2.custom.min.js' ?>"></script>
<script>
  $(function() {
    $( "#sortable_android" ).sortable();
    $( "#sortable_android" ).disableSelection();
  });
</script>
<form method="post" action="">
    
<ul id="sortable_android">
  <?php if(isset($model)):?>
    <?php foreach($model as $item):?>
    <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span><img width="20px" height="20px" src="<?php echo Yii::app()->createUrl($item->image) ?>" /><?php echo $item->name ?><input type="hidden" name="game[]" value="<?php echo $item->id ?>"></li>  
    <?php endforeach;?>
  <?php endif;?>
</ul>
<input type="submit" value="Submit">    
</form>    